package DesignPatern.A11_装饰者模式.A02_抽象模式;

/**
 * @Author: Du
 * @Date: 2021/7/30 15:50
 */
public class A01_Main
{
    public static void main(String[] args)
    {
        Component component = new ConcreteComponent();
    
        component = new ConcreteDecorator1(component);
        
        component = new ConcreteDecorator2(component);
        
        component.operate();
    }
}
